package com.ruoyi.tasks.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 楼栋核酸任务CRUD对象 t_building_tasks
 *
 * @author ruoyi
 * @date 2022-10-05
 */
public class BuildingTasksDto extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 唯一标识 */
    private Long id;

    /** 小区名字 */
    @Excel(name = "小区名字")
    private String rqName;

    /** 楼栋名 */
    @Excel(name = "楼栋名")
    private String buildingName;

    /** 任务名 */
    @Excel(name = "任务名")
    private String tasks;

    /** 状态 0未开始 1进行中 2已完成 */
    @Excel(name = "状态 0未开始 1进行中 2已完成")
    private String state;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /** 检测位置 */
    @Excel(name = "检测位置")
    private String position;

    /** 检测人数 */
    @Excel(name = "检测人数")
    private Integer testingNumber;

    /** 完成人数 */
    @Excel(name = "完成人数")
    private Integer completeNumber;

    private String radio;

    public String getRadio() {
        return radio;
    }

    public void setRadio(String radio) {
        this.radio = radio;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setRqName(String rqName)
    {
        this.rqName = rqName;
    }

    public String getRqName()
    {
        return rqName;
    }
    public void setBuildingName(String buildingName)
    {
        this.buildingName = buildingName;
    }

    public String getBuildingName()
    {
        return buildingName;
    }
    public void setTasks(String tasks)
    {
        this.tasks = tasks;
    }

    public String getTasks()
    {
        return tasks;
    }
    public void setState(String state)
    {
        this.state = state;
    }

    public String getState()
    {
        return state;
    }
    public void setStartTime(Date startTime)
    {
        this.startTime = startTime;
    }

    public Date getStartTime()
    {
        return startTime;
    }
    public void setEndTime(Date endTime)
    {
        this.endTime = endTime;
    }

    public Date getEndTime()
    {
        return endTime;
    }
    public void setPosition(String position)
    {
        this.position = position;
    }

    public String getPosition()
    {
        return position;
    }
    public void setTestingNumber(Integer testingNumber)
    {
        this.testingNumber = testingNumber;
    }

    public Integer getTestingNumber()
    {
        return testingNumber;
    }
    public void setCompleteNumber(Integer completeNumber)
    {
        this.completeNumber = completeNumber;
    }

    public Integer getCompleteNumber()
    {
        return completeNumber;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("rqName", getRqName())
                .append("buildingName", getBuildingName())
                .append("tasks", getTasks())
                .append("state", getState())
                .append("startTime", getStartTime())
                .append("endTime", getEndTime())
                .append("position", getPosition())
                .append("testingNumber", getTestingNumber())
                .append("completeNumber", getCompleteNumber())
                .toString();
    }
}
